<?php require_once("webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php require_once( "webassist/security_assist/helper_php.php" ); ?>
<?php 
if (isset($_POST["Registration_submit"]))  {
  $WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES))  ."?invalid=true";
  $_SESSION['WAVT_registrationmember_Errors'] = "";
  if ($WAFV_Redirect == "")  {
    $WAFV_Redirect = $_SERVER["PHP_SELF"];
  }
  $WAFV_Errors = "";
  $WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security_Code"])?$_POST["Security_Code"]:"")) . "",((isset($_SESSION["captcha_Security_Code"]))?strtolower($_SESSION["captcha_Security_Code"]):"") . "",true,1);
  $WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security_Answer"])?$_POST["Security_Answer"]:"")) . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,2);
  $WAFV_Errors .= WAValidateRX((isset($_POST["Hidden_Field"])?$_POST["Hidden_Field"]:"") . "","/.* /",false,3);

  if ($WAFV_Errors != "")  {
    PostResult($WAFV_Redirect,$WAFV_Errors,"registrationmember");
  }
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Create New User</title>
<script src="webassist/progress_bar/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="webassist/forms/wa_servervalidation.js" type="text/javascript"></script>
<link href="webassist/forms/fd_basic_default.css" rel="stylesheet" type="text/css">
</head>

<body>
<?php if(WA_Auth_RulePasses("Validated form")){ // Begin Show Region ?>
<p>Invalid information, please check your entries and try again.</p>
<?php } // End Show Region ?>
<div id="RegistrationContainer" class="WAATK">
  <div id="Registration_Basic_Default_ProgressWrapper">
    <form class="Basic_Default" id="Registration_Basic_Default" name="Registration_Basic_Default" method="post" action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">
      <fieldset class="Basic_Default" id="Registration">
        <legend class="groupHeader">Registration</legend>
        <span class="fieldsetDescription"> Required * </span>
        <div class="lineGroup">
          <label for="Security_Code" class="sublabel" >&nbsp;</label>
          <div class="errorGroup"> <span> <img src="webassist/captcha/wavt_captchasecurityimages.php?field=Security_Code&amp;noisefreq=15&amp;noisecolor=060606&amp;gridcolor=080808&amp;font=fonts/MOM_T___.TTF&amp;textcolor=040404" alt="Security Code" class="Captcha"> </span> </div>
          <div class="fullColumnGroup" style="clear:left;">
            <label for="Security_Code" class="sublabel" > Security code:<span class="requiredIndicator">&nbsp;*</span></label>
            <div class="errorGroup"> <span id="Security_Code_Spry"> <span>
              <input id="Security_Code" name="Security_Code" type="text" value="" class="formTextfield_Large" tabindex="1" onBlur="hideServerError('Security_Code_ServerError');">
              <?php
if (ValidatedField('registrationmember','registrationmember'))  {
  if ((strpos((",".ValidatedField("registrationmember","registrationmember").","), "," . "1" . ",") !== false || "1" == ""))  {
    if (!(false))  {
?>
                <span class="serverInvalidState" id="Security_Code_ServerError">Entered text does not match; please try again</span>
                <?php //WAFV_Conditional registration_member.php registrationmember(1:)
    }
  }
}?>
<span class="textfieldRequiredMsg">Entered text does not match; please try again</span> </span> </span> </div>
          </div>
        </div>
        <div class="lineGroup">
          <label for="Security_Answer_2" class="sublabel" >&nbsp;</label>
          <div class="errorGroup"> <span> <span class="precedingText">
            <?php require_once("webassist/captcha/wavt_captchasecurityquestion.php"); ?>
          </span> </span> </div>
          <div class="fullColumnGroup" style="clear:left;">
            <label for="Security_Answer" class="sublabel" > Answer:<span class="requiredIndicator">&nbsp;*</span></label>
            <div class="errorGroup"> <span id="Security_Answer_Spry"> <span>
              <input id="Security_Answer" name="Security_Answer" type="text" value="" class="formTextfield_Large" tabindex="2" onBlur="hideServerError('Security_Answer_ServerError');">
              <?php
if (ValidatedField('registrationmember','registrationmember'))  {
  if ((strpos((",".ValidatedField("registrationmember","registrationmember").","), "," . "2" . ",") !== false || "2" == ""))  {
    if (!(false))  {
?>
                <span class="serverInvalidState" id="Security_Answer_ServerError">Incorrect 
                  response; please try again</span>
                <?php //WAFV_Conditional registration_member.php registrationmember(2:)
    }
  }
}?>
<span class="textfieldRequiredMsg">Incorrect 
                response; please try again</span> </span> </span> </div>
          </div>
        </div>
        <span class="buttonFieldGroup" >
          <input id="Hidden_Field" name="Hidden_Field" type="hidden" value="<?php echo((isset($_GET["invalid"])?ValidatedField("registrationmember","Hidden_Field"):"")); ?>">
          <input class="formButton" name="Registration_submit" type="submit" id="Registration_submit" value="Register"  onClick="clearAllServerErrors('Registration_Basic_Default')">
        </span>
      </fieldset>
    </form>
  </div>
  <div id="Registration_Basic_Default_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
    <script type="text/javascript">
WADFP_SetProgressToForm('Registration_Basic_Default', 'Registration_Basic_Default_ProgressMessageWrapper', WADFP_Theme_Options['BigSpin:Slate']);
  </script>
    <div id="Registration_Basic_Default_ProgressMessage" >
      <p style="margin:10px; padding:5px;" ><img src="webassist/progress_bar/images/slate-largespin.gif" alt="" title="" style="vertical-align:middle;" />&nbsp;&nbsp;Please wait</p>
    </div>
  </div>
</div>
<script type="text/javascript">
<!--
var Security_Code_Spry = new Spry.Widget.ValidationTextField("Security_Code_Spry", "none",{validateOn:["blur"]});
var Security_Answer_Spry = new Spry.Widget.ValidationTextField("Security_Answer_Spry", "none",{validateOn:["blur"]});
//-->
</script>
</body>
</html>
